<%@ include file="header.jsp" %>

<body>

    <div class="content">
        <div class="defaultBlock">
            Someone said <a href="moanings/${moaning.id}" target="#">${moaning.text}</a>
        </div>
        <div class="defaultBlock">
            <c:choose>
                <c:when test="${readOnly}">
                    I say ${reply.text}
                </c:when>
                <c:otherwise>
                    <form:form commandName="reply">
                        I say
                        <form:input type="text" path="text"/>
                        <input type ="submit"value="Go"/>
                    </form:form>
                </c:otherwise>
            </c:choose>
        </div>
    </div>
</body>
</html>
